import { createClient } from 'redis';
const client = createClient({
  url: 'redis://172.16.102.40:6379',//url: 'redis://alice:foobared@172.16.102.40:6379'
});
client.on('error', (err )=>{
  console.log('Redis Client Error', err)
});
client.on('connect',async () => {
  console.log('Connected to Redis successfully');
  let status=await client.set('b', 'b1');
  status=await client.get("b");
  console.log(status)
});
await client.connect();